Skip to content

MINOR: Test Coverage for Segmented stores#21860

Open
eduwercamacaro wants to merge 8 commits intoapache:trunkfrom
eduwercamacaro:test-store-positions
Open

MINOR: Test Coverage for Segmented stores#21860
eduwercamacaro wants to merge 8 commits intoapache:trunkfrom
eduwercamacaro:test-store-positions

Conversation

@eduwercamacaro
Copy link
Copy Markdown
Contributor

@eduwercamacaro eduwercamacaro commented Mar 24, 2026

Follow-up PR for KAFKA-19713 that includes test cases for:

  • Persist Position offsets in the offsets ColumnFamily
  • Position gets correctly merged across all segments in Segmented stores
  • Persist position after every commit
  • Restore positions after store close->open

This PR also refactors AbstractColumnFamily tests to not use a mock by
creating an in-memory version of a RocksDBAccessor.

Reviewers: Bill Bejeck bbejeck@apache.org

@github-actions github-actions bot added triage PRs from the community streams tests Test fixes (including flaky tests) labels Mar 24, 2026
Copy link
Copy Markdown
Member

@bbejeck bbejeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the follow-up @eduwercamacaro - LGTM with a couple of minor nits

*/
private static final Comparator<byte[]> BYTES_COMPARATOR = Arrays::compare;


Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extra blank line

import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.mockito.Mockito.mock;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extra blank line

eduwercamacaro and others added 2 commits March 30, 2026 15:19
…/AbstractColumnFamilyAccessorTest.java

Co-authored-by: Bill Bejeck <bbejeck@gmail.com>
@eduwercamacaro
Copy link
Copy Markdown
Contributor Author

@bbejeck Thanks for reviewing. Suggestions applied now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

streams tests Test fixes (including flaky tests) triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants